package demo02fahongbao;

import com.sun.org.apache.xerces.internal.impl.XMLEntityManager;

import javax.swing.*;
import java.util.ArrayList;

public class Main {
    public static void main(String[] args) {
        Admin ad = new Admin("群主", 100);
        Member m1 = new Member("A", 0);
        Member m2 = new Member("B", 0);
        Member m3 = new Member("C", 0);

        ArrayList<Integer> redList=ad.send(10,3);
        m1.receive(redList);
        m2.receive(redList);
        m3.receive(redList);
        m1.show();
        m2.show();
        m3.show();
        ad.show();
    }
}
